package cn.tedu.lv;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class LvBu {

    private String name="吕布";

    @Autowired
    private SkyLance skyLance;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public SkyLance getSkyLance() {
        return skyLance;
    }

    public void setSkyLance(SkyLance skyLance) {
        this.skyLance = skyLance;
    }

    public void fight(){
        System.out.println(name+"使用"+skyLance+"战斗");
    }

}
